using System;
using System.Text.RegularExpressions;

namespace System72.NTextile.RegexLibrary
{
    public class PhraseRegex:BaseRegex
    {
        #region Constructors

        public PhraseRegex(string regexOperator,string phraseOperator)
        {
            string pattern = String.Format(@"{0}((?>[^{1}\n]+|{0}(?<depth>)|{0}(?<-depth>))*(?(depth)(?!))){0}", regexOperator, phraseOperator);
            m_regex = new Regex(pattern);
        }

        #endregion

    }
}
